<!--{template admin/header}-->

<script type="text/javascript">
  function refalshStatic(c){
      $.get(
        'ajax.php?mod=misc&code=refalshstatic&type='+c,
        '',
        function(r){
            var id = c+'_tbody';
            $("#"+id).html(r);
            show_message('数据更新成功。');
        }
      )
  }
</script>

<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  <tr class="header">
    <td colspan="12">待审核记录<em>（最后更新时间：<!--{eval echo my_date_format2($data_verify['time'])}-->，点击数字进入审核页面）</em></td>
  </tr>
  <tr class="altbg1">
    <!--{loop $data_verify['data']['name'] $name}-->
    <td title="{$name}个数">{$name}</td>
    <!--{/loop}-->
  </tr>
  <tr class="altbg2">
    <!--{loop $data_verify['data']['count'] $count}-->
    <td>{$count}</td>
    <!--{/loop}-->
  </tr>
</table>
<div class="c"></div>

<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  <tr class="header">
      <td colspan="12">
        <div>
          <span>注册登录数据统计<em>（最后更新时间：<!--{eval echo my_date_format2($logic_statistics['time'])}-->）</em></span>
          <span style="float:right;"><em><a href="javascript:void(0);" onclick="refalshStatic('login');">点击更新数据</a></em></span>
        </div>
    </td>
  </tr>
  <tbody id="login_tbody">
  <tr class="altbg1">
    <!--{loop $logic_statistics['data'] $k $v}-->
    <td>{$v['name']}</td>
    <!--{/loop}-->
  </tr>
  <tr class="altbg2">
    <!--{loop $logic_statistics['data'] $k $v}-->
    <td>{$v['num']}</td>
    <!--{/loop}-->
  </tr>
  </tbody>
</table>
<div class="c"></div>

<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
    <tr class="header">      
    <td colspan="12">
      <div>
        <span>内容发布数据统计<em>（最后更新时间：<!--{eval echo my_date_format2($content_statistics['time'])}-->）</em></span>
        <span style="float:right;"><em><a href="javascript:void(0);" onclick="refalshStatic('content');">点击更新数据</a></em></span>
      </div>
    </td>
  </tr>
  <tbody id="content_tbody">
  <tr class="altbg1">
    <!--{loop $content_statistics['data'] $k $v}-->
    <td>{$v['name']}</td>
    <!--{/loop}-->
  </tr>
  <tr class="altbg2">
    <!--{loop $content_statistics['data'] $k $v}-->
    <td>{$v['num']}</td>
    <!--{/loop}-->
  </tr>
  </tbody>
</table>
<div class="c"></div>

<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  <tr class="header">
    <td colspan="12">
      <div>
        <span>用户关系数据统计<em>（最后更新时间：<!--{eval echo my_date_format2($user_statistics['time'])}-->）</em></span>
        <span style="float:right;"><em><a href="javascript:void(0);" onclick="refalshStatic('user');">点击更新数据</a></em></span>
      </div>
    </td>
  </tr>
  <tbody id="user_tbody">
  <tr class="altbg1">
    <!--{loop $user_statistics['data'] $k $v}-->
    <td>{$v['name']}</td>
    <!--{/loop}-->
  </tr>
  <tr class="altbg2">
    <!--{loop $user_statistics['data'] $k $v}-->
    <td>{$v['num']}</td>
    <!--{/loop}-->
  </tr>
  </tbody>
</table>
<div class="c"></div>

<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  <tr class="header">
    <td colspan="20">
      <div>
        <span>用户类型数据统计<em>（最后更新时间：<!--{eval echo my_date_format2($role_statistics['time'])}-->）</em></span>
        <span style="float:right;"><em><a href="javascript:void(0);" onclick="refalshStatic('role');">点击更新数据</a></em></span>
      </div>
    </td>
  </tr>
  <tbody id="user_tbody">
  <tr class="altbg1">
    <!--{loop $role_statistics['data'] $k $v}-->
    <td>{$v['name']}</td>
    <!--{/loop}-->
  </tr>
  <tr class="altbg2">
    <!--{loop $role_statistics['data'] $k $v}-->
    <td>{$v['num']}</td>
    <!--{/loop}-->
  </tr>
  </tbody>
</table>
<div class="c"></div>


<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  <tr class="header">
    <td colspan="12">
      <div>
        <span>应用数据统计<em>（最后更新时间：<!--{eval echo my_date_format2($app_statistics['time'])}-->）</em></span>
        <span style="float:right;"><em><a href="javascript:void(0);" onclick="refalshStatic('app');">点击更新数据</a></em></span>
      </div>
    </td>
  </tr>
  <tbody id="app_tbody">
  <tr class="altbg1">
    <!--{loop $app_statistics['data'] $k $v}-->
    <td>{$v['name']}</td>
    <!--{/loop}-->
  </tr>
  <tr class="altbg2">
    <!--{loop $app_statistics['data'] $k $v}-->
    <td>{$v['num']}</td>
    <!--{/loop}-->
  </tr>
  </tbody>
</table>
<div class="c"></div>

<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  <tr class="header">
    <td colspan="12">
      <div>
        <span>其他数据统计<em>（最后更新时间：<!--{eval echo my_date_format2($other_statistics['time'])}-->）</em></span>
        <span style="float:right;"><em><a href="javascript:void(0);" onclick="refalshStatic('other');">点击更新数据</a></em></span>
      </div>
    </td>
  </tr>
  <tbody id="other_tbody">
  <tr class="altbg1">
    <!--{loop $other_statistics['data'] $k $v}-->
    <td>{$v['name']}</td>    
    <!--{/loop}-->
  </tr>
  <tr class="altbg2">
    <!--{loop $other_statistics['data'] $k $v}-->
    <td>{$v['num']}</td>
    <!--{/loop}-->
  </tr>
  </tbody>
</table>
<div class="c"></div>

<!--{if $check_upgrade}-->
<script language="JavaScript" type="text/javascript" src="admin.php?mod=upgrade&code=check&js=1"></script>
<!--{/if}-->
<script type="text/javascript" src="./static/js/min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
    /**暂时注释掉 by 小馬
    $.get('admin.php?mod=index&code=upgrade_check', function(data){
        if (data != 'noups')
        {
            $('#ups_alert').html(''+data+' <a href="admin.php?mod=upgrade"><font id="ups_alert_light" style="color:#D94446;font-weight:bold;font-size:13px;">点此在线升级</font></a>');
        }
        else
        {
            $('#ups_alert').html('已是最新版本');
        }
    });*/
    if (typeof(lrcmd) != 'undefined' && typeof(lrcmd) == 'string')
    {
        $.get('admin.php?mod=index&code=lrcmd_nt&lv='+lrcmd, function(data){
            if (data != 'false')
            {
                $('#lic_recommend').html(data).slideDown();
            }
        });
    }
});

</script>

 